package com.poseidon.support.uap.server;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

@RefreshScope
//需要加载基准包否则web中定义的Advice无法生效
@SpringBootApplication(scanBasePackages = {"com.poseidon"})
@EnableDiscoveryClient
//@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
@MapperScan("com.poseidon.support.uap.server.mapper")
public class UapServerApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(UapServerApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
